/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ModelLayer;

import DBLayer.MapName;

/**
 *
 * @author Evil
 */
public class SalesLine
{
    private SalesOrder order;
    private Product product;
    @MapName(ColumnName = "Quantity")
    private int quantity;
    @MapName(ColumnName = "ProductID")
    private int productID;
    @MapName(ColumnName = "OrderID")
    private int orderID;

    public SalesLine(Product product, int quantity)
    {
        this.product = product;
        this.quantity = quantity;
    }

    public SalesLine()
    {

    }

    public SalesOrder getOrder()
    {
        return order;
    }

    public void setOrder(SalesOrder order)
    {
        this.order = order;
    }

    public Product getProduct()
    {
        return product;
    }

    public void setProduct(Product product)
    {
        this.product = product;
    }

    public int getQuantity()
    {
        return quantity;
    }

    public void setQuantity(int quantity)
    {
        this.quantity = quantity;
    }



}
